<%--
  Created by IntelliJ IDEA.
  User: 小威
  Date: 2020/6/1
  Time: 20:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>

    <link rel="stylesheet" href="layui/layui.css">
    <script src="layui/layui.all.js"></script>
    <script src="../jquery/jquery-3.4.1.js"></script>
</head>
<body>
<form class="layui-form" action="/forum/post/insertPostTest" enctype="multipart/form-data" method="post">
    <%--<input type="text" name="userName" value="${user.userName}">--%>
    ${user.userName}
    ${userinfo.userName}
    <div class="layui-form-item">
        <label class="layui-form-label">帖子标题</label>
        <div class="layui-input-block">
            <input type="text" name="postName" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">帖子类型</label>
        <div class="layui-input-block">
            <input type="text" name="postType" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">帖子配图</label>
        <div class="layui-input-block">
            <input type="file" name="photo" value="请选择上传的文件"/>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">帖子内容</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入内容" class="layui-textarea" style="width: 90%;height: 500px" name="postContent"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>


</html>
